type IProps = {
    name: string,
    age: number
}

function MyFunctionComponent(props: IProps) {
    const {name, age} = props;

    return (
        <>
            <p>MyFunctionComponent:<span>name-{props.name},age-{props.age}</span></p>
            <p>MyFunctionComponent:<span>name-{name},age-{age}</span></p>
        </>
    )
}

export default MyFunctionComponent;


